/**
 * @file 1config-functor.cpp
 * @author Kun (kun_g@msn.com)
 * @brief test functor, () operator overload
 * @version 0.1
 * @date 2024-05-14
 *
 * @copyright Copyright (c) 2024
 *
 */
#include "1config-functor.h"
#include <iostream>

using namespace std;

int main() {
  int a = 5, b = 6;
  Add ops;
  cout << "()reload,             ops(a, b) = " << ops(a, b) << endl;
  cout << "()reload,             ops(1, 2) = " << ops(1, 2) << endl;
  cout << "normal call function, ops.add(a, b) = " << ops.add(a, b) << endl;
  cout << "reference call function, ops.add(&a, &b) = " << ops.add(&a, &b)
       << endl;
  cout << "normal call function, ops.add(1, 2) = " << ops.add(1, 2) << endl;
  return 0;
}